#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stddef.h>

struct C
{
	char c1;
	int a1;
	char c2;
};

#define OFFSETOF(struct_name,member_name) (int)&(((struct_name*)0)->member_name)
int main()
{
	printf("%d ", OFFSETOF(struct C, c1));
	printf("%d ", OFFSETOF(struct C, a1));
	printf("%d ", OFFSETOF(struct C, c2));
	return 0;
}